How can I minimize/maximize windows in macOS from a Python script?
On Windows, there's a win32 api (the ShowWindow()
function) that can do this. I'd like the macOS equivalent. I'd like to have a script be able to find a window from its title, then minimize or maximize it.
Is this possible? I assume I need to use the pyobjc
module for this.